﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="FisheryPlatform.Web.WWW.Index" %>

<%@ Import Namespace="FisheryPlatform.Bussiness.Cache" %>
<%@ Register TagName="Style" TagPrefix="Menu" Src="~/Modules/Menu/StyleMenu.ascx" %>
<%@ Register TagName="Header" TagPrefix="Menu" Src="~/Modules/Menu/HeaderMenu.ascx" %>
<%@ Register TagName="Footer" TagPrefix="Menu" Src="~/Modules/Menu/FooterMenu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <Menu:Style runat="server" ID="menuStyle" Title="涝洲渔业"></Menu:Style>
</head>
<body>
    <div class="wrapper">
        <Menu:Header runat="server" ID="menuHeader" />
        <div class="content">
            <div class="left">
                <div class="col_l">
                    <div class="col">
                        <h3>
                            <a href="Product/Index.aspx?t=1" target="_blank">出售</a><span style="float: right"><a
                                href="Product/Index.aspx?t=1" target="_blank">更多&nbsp;&gt;&gt;</a></span></h3>
                        <ul>
                            <% foreach (var item in SellList)
                               {%>
                            <li><a title="<%= HttpUtility.HtmlEncode(item.Title) %>" href="<%=ProductStaticHtmlCache.GetFileName(item.ProductId.ToString(),item.CreateDate)%>"
                                target="_blank">
                                <%= HttpUtility.HtmlEncode(item.Title.Length>15?item.Title.Substring(0,15):item.Title) %>
                            </a></li>
                            <%} %>
                        </ul>
                    </div>
                </div>
                <div class="col_r">
                    <div class="col">
                        <h3>
                            <a href="Product/Index.aspx?t=2" target="_blank">求购</a><span style="float: right"><a href="Product/Index.aspx?t=2" target="_blank">更多&nbsp;&gt;&gt;</a></span></h3>
                        <ul>
                            <% foreach (var item in PurchaseList)
                               {%>
                            <li><a title="<%= HttpUtility.HtmlEncode(item.Title) %>" href="<%=ProductStaticHtmlCache.GetFileName(item.ProductId.ToString(),item.CreateDate)%>"
                                target="_blank">
                                <%= HttpUtility.HtmlEncode(item.Title.Length>15?item.Title.Substring(0,15):item.Title) %>
                            </a></li>
                            <%} %>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="right">
                <div class="col">
                    <h2>
                        <a href="News/Index.aspx" target="_blank">热门信息&nbsp;&gt;&gt;</a></h2>
                    <ul>
                        <%foreach (var post in HomePostList)
                          { %>
                        <li><a title="<%= HttpUtility.HtmlEncode(post.Title) %>" href="<%=PostStaticHtmlCache.GetFileName(post.PostId.ToString(),post.PostDate) %>"
                            target="_blank">
                            <%=HttpUtility.HtmlEncode(post.Title.Length > 15 ? post.Title.Substring(0,15)+"...": post.Title)%></a></li>
                        <%} %>
                    </ul>
                </div>
            </div>
        </div>
        <Menu:Footer runat="server" ID="menuFooter" />
    </div>
</body>
</html>
